package com.lz.library.adapter

import android.view.View
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.recyclerview.widget.RecyclerView

/**
 *  author: you : 2020/4/25
 */
class BindingViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {

    fun <T : ViewDataBinding> getBinding(): T = DataBindingUtil.getBinding<T>(itemView) as T
}